import React from 'react';
import './doctoritem.css'

class DoctorItem extends React.Component {
    constructor(props) {
        super(props);         
        this.state = {      
            test: 'null'
        };   
    }
    // static propTypes = {
    //     dataSource: this.props.heatthArticle
    // };
    render() {
        return (
            <div className="famous-health-article">                    
                <img className="famous-health-article-img" />     
                <div className="famous-health-doctor-text">
                    <div className="famous-health-doctor" >{this.props.name}<span>{this.props.job}</span></div>
                    <div className="famous-health-doctor-major">{this.props.major}</div>   
                </div>
            </div>
        )
    }
}

//导出组件
export default DoctorItem;
